*! version 3.0 13Mar2017 
*! by Hung-Jen Wang
*!    Department of Economics, National Taiwan University
*!    wangh@ntu.edu.tw


capture program drop myclear
program define myclear

   capture log close
   capture clear mata
   drop _all
   scalar drop _all
   local drop _all
   mat drop _all
   program drop _all
   mac drop _all
   global drop _all
   clear
   capture set memory 10m
   set graphics on

end
